﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Luxury_car_sales_system
{
    public partial class Goods_Inquire : Form
    {
        public Goods_Inquire()
        {
            InitializeComponent();
        }

        private void Goods_Inquire_Load(object sender, EventArgs e)
        {
            string sql = "select * from Goods";
            DBHelper.dataSet.Tables.Clear();
            dataGridView1.AutoGenerateColumns = false;
            dataGridView1.DataSource = DBHelper.getDataTable(sql);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
